[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanSort

CanSort Method

CanSort<T>(IDataCollection<T>, string)

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath) where T : class?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), sortPath As String) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string sortPath

The path of the data item to which the sort would be applied.

Returns
Type Description
bool
Type Parameters
Name Description
T

CanSort<T>(IDataCollection<T>, string, SortDirection)

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, string sortPath, SortDirection direction) where T : class?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), sortPath As String, direction As SortDirection) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string sortPath

The path of the data item to which the sort would be applied.

SortDirection direction

Whether the sort is ascending or descending.

Returns
Type Description
bool
Type Parameters
Name Description
T

CanSort<T>(IDataCollection<T>, params SortDescription[])

Returns true if the data collection supports sorting.

Declaration
public static bool CanSort<T>(this IDataCollection<T> dataCollection, params SortDescription[] sortDescriptions) where T : class?
Public Shared Function CanSort(Of T As Class)(dataCollection As IDataCollection(Of T), ParamArray sortDescriptions As SortDescription()) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

SortDescription[] sortDescriptions

The sort descriptions that determine how the data would be sort.

Returns
Type Description
bool
Type Parameters
Name Description
T